package com.android.BottomGame;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.Toast;

public class BottomGameActivity extends Activity {
	private GameControl mGameControl = null;
    /** Called when the activity is first created. */
    @Override
    
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        mGameControl = new GameControl(this);
        setContentView(mGameControl);
    }
    public boolean onKeyUp(int keyCode, KeyEvent event)
	{
		super.onKeyUp(keyCode, event);
		return true;
	}
	public boolean onKeyDown(int keyCode, KeyEvent event)
	{
		if ( mGameControl == null )
		{
			return false;
		}
		return mGameControl.onKeyDown(keyCode,event);
	}
    
} 